Skip to content

feat: Set up local blog#395

Open
drwpow wants to merge 1 commit intomainfrom
drwpow/blog-setup
Open

feat: Set up local blog#395
drwpow wants to merge 1 commit intomainfrom
drwpow/blog-setup

Conversation

@drwpow
Copy link
Contributor

@drwpow drwpow commented Mar 1, 2026

Changes

Allows local blog to coexist alongside the external W3C posts. This only lets us add posts inside www/src/content/posts/*.md, but doesn’t make the first post (yet)

How to Review

  • See preview link, confirm /blog/ hasn’t changed

@netlify
Copy link

netlify bot commented Mar 1, 2026

Deploy Preview for designtokensorg ready!

Name Link
🔨 Latest commit 54da481
🔍 Latest deploy log https://app.netlify.com/projects/designtokensorg/deploys/69a4a75eb8b51f000885d041
😎 Deploy Preview https://deploy-preview-395--designtokensorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

.or(z.date())
.transform((val) => new Date(val));

const w3c = defineCollection({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we can name this externalPosts or whatever, the name is easily-changeable and only referenced internally

/>
</a>
) : (
<a href={`/blog/${post.id}`}>{post.data.title}</a>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: is /blog/[slug] OK? IMO I like having the root-level page and subpages exist at the same path, as opposed to /blog and /post/[slug].

@drwpow drwpow force-pushed the drwpow/blog-setup branch from 89deba1 to 54da481 Compare March 1, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant